import numpy as np


class Integral:
    def __init__(self, player_data):
        self.player_data = player_data
        self.key = ['Players Name', 'games played', 'Wins', 'Loses', 'Integral']
        self.value = None
        self.Integral = 0

    def score(self):
        if self.player_data['Wins'] == 1:
            self.Integral += 3
        elif self.player_data['Loses'] == 1:
            self.Integral -= 2
        self.value = [self.player_data['Players Name'], self.player_data['games played'], self.player_data['Wins'], self.player_data['Loses'],
                      self.Integral]
        d = dict(zip(self.key, self.value))
        return d


if __name__ == "__main__":
    D = [{'Players Name': 'SAKA', 'Positions': 'GK', 'games played': 1, 'Passes': 5, 'Assists': 0, 'Shots': 0, 'Goals': 0, 'TKLs': 1, 'INTs': 3, 'Catches': 4, 'Saves': 5, 'Wins': 1, 'Loses': 0}, {'Players Name': '바디', 'Positions': 'CB', 'games played': 1, 'Passes': 7, 'Assists': 0, 'Shots': 1, 'Goals': 0, 'TKLs': 6, 'INTs': 8, 'Catches': 0, 'Saves': 0, 'Wins': 1, 'Loses': 0}, {'Players Name': 'Cheese_起飔', 'Positions': 'CB', 'games played': 1, 'Passes': 10, 'Assists': 0, 'Shots': 0, 'Goals': 0, 'TKLs': 2, 'INTs': 4, 'Catches': 0, 'Saves': 0, 'Wins': 1, 'Loses': 0}, {'Players Name': 'Zinedine Zidane', 'Positions': 'CB', 'games played': 1, 'Passes': 12, 'Assists': 1, 'Shots': 0, 'Goals': 0, 'TKLs': 3, 'INTs': 13, 'Catches': 0, 'Saves': 0, 'Wins': 1, 'Loses': 0}, {'Players Name': 'ngannou', 'Positions': 'CM', 'games played': 1, 'Passes': 11, 'Assists': 1, 'Shots': 5, 'Goals': 2, 'TKLs': 5, 'INTs': 9, 'Catches': 0, 'Saves': 0, 'Wins': 1, 'Loses': 0}, {'Players Name': '손흥민', 'Positions': 'ST', 'games played': 1, 'Passes': 12, 'Assists': 0, 'Shots': 5, 'Goals': 2, 'TKLs': 2, 'INTs': 2, 'Catches': 0, 'Saves': 0, 'Wins': 1, 'Loses': 0}, {'Players Name': 'Marco Pascalo', 'Positions': 'ST', 'games played': 1, 'Passes': 5, 'Assists': 1, 'Shots': 7, 'Goals': 4, 'TKLs': 6, 'INTs': 5, 'Catches': 0, 'Saves': 0, 'Wins': 1, 'Loses': 0}, {'Players Name': '토오오오끼', 'Positions': 'CB', 'games played': 1, 'Passes': 7, 'Assists': 0, 'Shots': 0, 'Goals': 1, 'TKLs': 8, 'INTs': 9, 'Catches': 0, 'Saves': 0, 'Wins': 0, 'Loses': 1}, {'Players Name': 'ZenRyu', 'Positions': 'CB', 'games played': 1, 'Passes': 1, 'Assists': 0, 'Shots': 0, 'Goals': 1, 'TKLs': 6, 'INTs': 4, 'Catches': 0, 'Saves': 0, 'Wins': 0, 'Loses': 1}, {'Players Name': 'xf', 'Positions': 'CM', 'games played': 1, 'Passes': 10, 'Assists': 1, 'Shots': 0, 'Goals': 0, 'TKLs': 2, 'INTs': 2, 'Catches': 0, 'Saves': 0, 'Wins': 0, 'Loses': 1}, {'Players Name': 'YOASOBI', 'Positions': 'ST', 'games played': 1, 'Passes': 2, 'Assists': 0, 'Shots': 0, 'Goals': 0, 'TKLs': 3, 'INTs': 6, 'Catches': 0, 'Saves': 0, 'Wins': 0, 'Loses': 1}, {'Players Name': 'Hello', 'Positions': 'ST', 'games played': 1, 'Passes': 12, 'Assists': 0, 'Shots': 1, 'Goals': 1, 'TKLs': 3, 'INTs': 4, 'Catches': 0, 'Saves': 0, 'Wins': 0, 'Loses': 1}, {'Players Name': 'GGbond', 'Positions': 'ST', 'games played': 1, 'Passes': 9, 'Assists': 1, 'Shots': 4, 'Goals': 2, 'TKLs': 4, 'INTs': 6, 'Catches': 0, 'Saves': 0, 'Wins': 0, 'Loses': 1}]
    for i in D:
        print(Integral(i).score())